package com.ruoyi.system.domain;

import java.util.Date;
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 潜在学员对象 prospects_student
 * 
 * @author tong
 * @date 2024-01-23
 */
public class ProspectsStudent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 潜在客户名 */
    @Excel(name = "潜在客户名")
    private String name;

    /** 潜在客户微信 */
    @Excel(name = "潜在客户微信")
    private String wechat;

    /** 潜在客户qq */
    @Excel(name = "潜在客户qq")
    private String qq;

    /** 潜在客户联系电话 */
    @Excel(name = "潜在客户联系电话")
    private String phone;

    /** 来源：他人推荐、公众号 */
    @Excel(name = "来源：他人推荐、公众号")
    private String channel;

    /** 录入人 */
    @Excel(name = "录入人")
    private String entrantTeacher;

    /** 追踪次数 */
    @Excel(name = "追踪次数")
    private Long followTime;

    /** 咨询老师 */
    @Excel(name = "咨询老师")
    private String consultTeacher;

    /** 录入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date entryTime;

    /** 最后追踪时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后追踪时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date astTraceDate;

    // 重写 equals 和 hashCode 方法
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ProspectsStudent that = (ProspectsStudent) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name) &&
                Objects.equals(wechat, that.wechat) &&
                Objects.equals(qq, that.qq) &&
                Objects.equals(phone, that.phone) &&
                Objects.equals(channel, that.channel) &&
                Objects.equals(entrantTeacher, that.entrantTeacher) &&
                Objects.equals(followTime, that.followTime) &&
                Objects.equals(consultTeacher, that.consultTeacher) &&
                Objects.equals(entryTime, that.entryTime) &&
                Objects.equals(astTraceDate, that.astTraceDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, wechat, qq, phone, channel, entrantTeacher, followTime, consultTeacher, entryTime, astTraceDate);
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setWechat(String wechat) 
    {
        this.wechat = wechat;
    }

    public String getWechat() 
    {
        return wechat;
    }
    public void setQq(String qq) 
    {
        this.qq = qq;
    }

    public String getQq() 
    {
        return qq;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setChannel(String channel) 
    {
        this.channel = channel;
    }

    public String getChannel() 
    {
        return channel;
    }
    public void setEntrantTeacher(String entrantTeacher) 
    {
        this.entrantTeacher = entrantTeacher;
    }

    public String getEntrantTeacher() 
    {
        return entrantTeacher;
    }
    public void setFollowTime(Long followTime) 
    {
        this.followTime = followTime;
    }

    public Long getFollowTime() 
    {
        return followTime;
    }
    public void setConsultTeacher(String consultTeacher) 
    {
        this.consultTeacher = consultTeacher;
    }

    public String getConsultTeacher() 
    {
        return consultTeacher;
    }
    public void setEntryTime(Date entryTime) 
    {
        this.entryTime = entryTime;
    }

    public Date getEntryTime() 
    {
        return entryTime;
    }
    public void setAstTraceDate(Date astTraceDate) 
    {
        this.astTraceDate = astTraceDate;
    }

    public Date getAstTraceDate() 
    {
        return astTraceDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("wechat", getWechat())
            .append("qq", getQq())
            .append("phone", getPhone())
            .append("channel", getChannel())
            .append("entrantTeacher", getEntrantTeacher())
            .append("followTime", getFollowTime())
            .append("consultTeacher", getConsultTeacher())
            .append("entryTime", getEntryTime())
            .append("astTraceDate", getAstTraceDate())
            .append("remark", getRemark())
            .toString();
    }

}
